package cn.itcast.mq.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QuorumConfig {
    @Bean
    public Queue quorumQueue() {
        return QueueBuilder.durable("quorum.queue2") // 持久化
                .quorum() // 仲裁队列
                .build();
    }
}

